package com.liujit.bms.app.domain.params;

import com.liujit.validator.group.ModifyGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.Date;
/**
 * @Description 博客文章评论请求参数
 * @Author liujun
 * @Date 2021-07-17 10:16:09
 */
@Data
@ApiModel(value = "BlogArticleCommentParams", description = "博客文章评论请求参数")
public class BlogArticleCommentParams {

    @ApiModelProperty(value = "主键id")
    @NotNull(message = "主键id不能为空", groups = ModifyGroup.class)
    private Long id;

    @ApiModelProperty(value = "文章id")
    private Long articleId;

    @ApiModelProperty(value = "评论id")
    private Long pid;

    @ApiModelProperty(value = "会员id")
    private Long memberId;

    @ApiModelProperty(value = "评论内容")
    @Length(max = 1024, message = "评论内容最大长度1024")
    private String comment;

    @ApiModelProperty(value = "是否打开：1、是。0、否。")
    private Short isOpen;

    @ApiModelProperty(value = "评论时间")
    private Date commentTime;
}